package com.my.chapter10;

public class practice13 {
    public static void main(String[] args) {
        Outer13 o = new Outer13();
        E e = o.getE();
        e.display();
    }
}

interface E{
    void display();
}

class Outer13{
    E getE(){
        return new E() {
            @Override
            public void display() {
                System.out.println("E.display()");
            }
        };
    }
}
